package chips440.tiles;

import java.awt.image.BufferedImage;
import chips440.internals.Player;
import chips440.main.Types;

/**
 * If the player does not have ice boots, he will slide in the current
 * direction of movement until hitting another tile. He will then be subject
 * to whatever that other tile does. image for this tile is "ice.gif"
 *
 * @author Ryan Hofler
 * @version 0.1
 */
public class IceTile extends Tile{
    /**
     * Make a new IceTile
     */
    public IceTile(){
	this.image = chips440.main.ResourceCache.getImage("ice");
    }

    public Types.TileAct okToStep(Player player){
        if(player.hasItem(Types.Item.I_BOOT))
            return Types.TileAct.MOVE;
        return Types.TileAct.CONT;
    }
}
